import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getCategoryAPI } from '../utils/testApi'
export const useCategoryStore = defineStore('category', () => {
  const categoryList = ref([])
  const getCategory = async () =>{
    const response = await getCategoryAPI() 
    categoryList.value = response.result
  }
  return { categoryList, getCategory }
})
